import { request } from "@/utils/service"
// 车辆管理
export function carGetList(data: any) {
  return request({
    url: "/bg/car/getList",
    method: "post",
    data
  })
}
//保存或修改
export function carSaveOrUpdate(data: any) {
  return request({
    url: "/bg/car/saveOrUpdate",
    method: "post",
    data
  })
}
//导入车辆
export function carImport(data: any) {
  return request({
    url: "/bg/car/importCar",
    method: "post",
    data
  })
}
//详情
export function carGetDetails(data: any) {
    return request({
      url: "/bg/car/getById",
      method: "post",
      data
    })
}

export function carDeleteById(data: any) {
  return request({
    url: "/bg/car/deleteById",
    method: "post",
    data
  })
}



//导出

export function carExportCarData(data: any) {
  return request({
    url: "/bg/car/exportCarData",
    method: "post",
    data
  })
}


//下载导入模板
export function carDownloadImportTemplate(data: any) {
    return request({
      url: "/bg/car/downloadImportTemplate",
      method: "post",
      data
    })
}
